<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
response.setHeader("Content-Disposition", "attachment;filename=城乡劳动力总量情况表(城镇 户籍).xls");
%>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>劳动力信息管理</title>
<script type="text/javascript" src="resources/js/labor/laborInfo.js"></script>
<link rel="stylesheet" type="text/css" href="resources/css/labor/laborInfoManage.css" />
</head> 
<body>
    <div id="pageContent">
        <div class="easyui-layout" data-options="fit: true">
            <div class="easyui-panel" title="城乡劳动力总量情况表(城镇 户籍)" data-options="region:'center', border:false">
                <div id="wds_toolbar" class="app-query-panel ">
                    <table>
                        <tr>
                            <td>
                                <label>街道</label>
                                <input id="LaborSearch_street" name="" class="easyui-combobox"/>
                                <label>社区</label>
                                <input id="LaborSearch_community" name="" class="easyui-combobox" />
                                <label>姓名</label>
                                <input id="LaborSearch_name" name="" class="" style="width:9%;"/>
                                <label>身份证号</label>
                                <input id="LaborSearch_idCard" name="" class="easyui-validatebox" style="width:16%;" data-options="validType:['idValid','formatValid']" />
                                <a href="#" class="easyui-linkbutton app-toolbar-button"  data-options="plain:true" onclick="laborSearch()"><i class="fa fa-search"></i>查询</a>                           
                            </td>                           
                        </tr>
                        <tr>
                            <td>
                                <a href="#" class="easyui-linkbutton app-toolbar-button"  data-options="plain:true" onclick="addLaborData()"><i  class="fa fa-plus"></i>添加</a>
                                <!-- <a href="#" id="importLaborButton" class="easyui-linkbutton app-toolbar-button"  data-options="plain:true" onclick="$('#importLaborInfo').window('open')"><i  class="fa fa-file"></i>导入</a> -->
                                <a href="#" id="importLaborButton" class="easyui-linkbutton app-toolbar-button"  data-options="plain:true" onclick="()"><i  class="fa fa-file"></i>导入</a>
                                <a href="#" class="easyui-linkbutton app-toolbar-button"  data-options="plain:true" onclick="exportData()"><i  class="fa fa-file-o"></i>导出</a>
                                <a href="#" class="easyui-linkbutton app-toolbar-button"  data-options="plain:true" onclick="getLaborInfo()"><i  class="fa fa-pencil-square-o"></i>修改</a>
                                <a href="#" class="easyui-linkbutton app-toolbar-button"  data-options="plain:true" onclick="deleteLaborInfo()"><i  class="fa fa-trash"></i>删除</a>
                            </td>
                        </tr>
                    </table>
                </div>
                <table id="laborInfoGrid" data-options="fit:true, border:false, toolbar:'#wds_toolbar'"></table>
                <%-- <input id="userName" type="hidden" value="<%=request.getAttribute("loginName") %>" /> --%>
            </div>
        </div>
        <div id="addLaborInfo" class="easyui-window" title="劳动力信息添加" data-options="collapsible:false,minimizable:false,maximizable:false,resizable:false,closed:true" style="width:380px;height:410px;padding:10px;">
            <div class="pageContent-list">
                <form id="addLaborInfoForm" method="post">
                    <!-- <input type="hidden" name="" id="laborinfoId"/> -->
                    <div>
                        <label>姓名：</label>
                        <input id="laborAdd_name" name="name" class="easyui-textbox" data-options="required:true, missingMessage:'姓名信息必填'" />
                    </div>
                    <div>
                        <label>性别：</label>
                        <input id="laborAdd_dict_gender" name="sex" class="easyui-combobox" />
                    </div>
                    <div>
                        <label>身份证号：</label>
                        <input id="laborAdd_idcard" name="idcard" class="easyui-textbox easyui-validatebox" data-options="required:true, missingMessage:'身份证号必填', validType:['idValid','formatValid']" />
                    </div>
                    <div>
                        <label>学历：</label>
                        <input id="laborAdd_dict_education" name="education" class="easyui-combobox" />
                    </div>
                    <div>
                        <label>联系方式：</label>
                        <!-- <input id="laborAdd_phone" name="phone" class="easyui-textbox easyui-validatebox" data-options="validType:'phoneRex'" /> -->
                        <input id="laborAdd_phone" name="phone" class="easyui-textbox" />
                    </div>
                    <div>
                        <label>就业状态：</label>
                        <input id="laborAdd_dict_employestate" name="status" class="easyui-combobox" data-options="required:true, missingMessage:'就业状态信息必填'" />
                    </div>
                     
                    <div>
                        <label>所在单位：</label>
                        <input id="laborAdd_company" name="company" class="easyui-textbox" />
                    </div>
                    <div>
                        <label>失业时间：</label>
                        <input id="laborAdd_unemploymentdate" name="unemploymentdate" class="easyui-datebox" />
                    </div>
                    <div>
                        <label>街道：</label>
                        <input id="laborAdd_dict_street" name="street" class="easyui-combobox" />
                    </div>
                    <div>
                        <label>社区：</label>
                        <input id="laborAdd_dict_community" name="community" class="easyui-combobox" />
                    </div>
                    <div>
                        <label>备注：</label>
                        <input id="laborAdd_remark" name="remark" class="easyui-textbox" />
                    </div>
                    <div class="btn-link">
                       <a href="#" class="easyui-linkbutton btn-link" style="width:80px;height:30px;"  onclick="insertLaborInfo()">保存</a>
                    </div>
                </form>
            </div>
        </div>
        <div id="importLaborInfo" class="easyui-window" title="导入劳动力数据" data-options="collapsible:false,minimizable:false,maximizable:false,resizable:false,closed:true" style="width:380px;height:260px;padding:10px;">
                <form id="uploadDataForm" method="post" enctype="multipart/form-data">
                     <div>
                         <br/>
                     </div>
                     <div>
                         <label>选择Excel文件：</label>
                         <input id="ExcelFile" type="file" accept=".xls,.xlsx" class="" name="ExcelFile" />
                         <br/><br/>
                     </div>
                     <div>
                         <a href="sampleExcel/laborImport.xls" >下载数据导入Excel模版</a>
                         <br/><br/>
                     </div>
                     <div class="btn-link">
                         <a href="#" class="easyui-linkbutton btn-link" style="width:60px;height:30px;"  onclick="importLabor()">上传</a>
                     </div>
                </form>
        </div>
        <div id="modifyLaborInfo" class="easyui-window" title="劳动力信息更新" data-options="collapsible:false,minimizable:false,maximizable:false,resizable:false,closed:true" style="width:380px;height:410px;padding:10px;">
            <div class="pageContent-list">
                <form id="modifyLaborInfoForm" method="post">
                    <input type="hidden" id="laborinfoId" name="laborinfoId" />
                    <div>
                        <label>姓名：</label>
                        <input id="laborUpdate_name" name="name" class="easyui-textbox" data-options="required:true, missingMessage:'姓名信息必填'"/>
                    </div>
                    <div>
                        <label>性别：</label>
                        <input id="laborUpdate_dict_gender" name="sex" class="easyui-combobox " />
                    </div>
                    <div>
                        <label>身份证号：</label>
                        <input id="laborUpdate_idcard" name="idcard" class="easyui-textbox easyui-validatebox" data-options="required:true, missingMessage:'身份证号必填', validType:['idValid','formatValid']"/>
                    </div>
                    <div>
                        <label>学历：</label>
                        <input id="laborUpdate_dict_education" name="education" class="easyui-combobox" />
                    </div>
                    <div>
                        <label>联系方式：</label>
                        <!-- <input id="laborUpdate_phone" name="phone" class="easyui-textbox easyui-validatebox" data-options="validType:'phoneRex'"/> -->
                        <input id="laborUpdate_phone" name="phone" class="easyui-textbox" />
                    </div>
                    <div>
                        <label>就业状态：</label>
                        <input id="laborUpdate_dict_employestate" name="status" class="easyui-combobox" />
                    </div>
                     
                    <div>
                        <label>所在单位：</label>
                        <input id="laborUpdate_company" name="company" class="easyui-textbox" />
                    </div>
                    <div>
                        <label>失业时间：</label>
                        <input id="laborUpdate_unemploymentdate" name="unemploymentdate" class="easyui-datebox" />
                    </div>
                    <div>
                        <label>街道：</label>
                        <input id="laborUpdate_dict_street" name="street" class="easyui-combobox" />
                    </div>
                    <div>
                        <label>社区：</label>
                        <input id="laborUpdate_dict_community" name="community" class="easyui-combobox" />
                    </div>
                    <div>
                        <label>备注：</label>
                        <input id="laborUpdate_remark" name="remark" class="easyui-textbox" />
                    </div>
                    <div class="btn-link">
                        <a href="#" class="easyui-linkbutton btn-link" style="width:80px;height:30px;" onclick="modifyLaborInfo()">保存</a>
                    </div>
                </form>
            </div>
        </div>
    </div>
</body>
</html>
